<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" href="../style/journal.css" type="text/css" />
<style type="text/css"><!--
.googleadsense {
	margin: 2px;
	padding: 0px;
//--></style><script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-65008-1";
urchinTracker();
</script><title>Javascript Code Syntax Highlighter / Perl</title>
</head>
<body>
<a href="index.html">Journal</a>(2005) | <a href="../blog/"><b>Blog</b></a>(2006) | <a href="http://www.fayland.org/cgi-bin/random_link.pl">RandomLink</a> | <a href="AboutFayland.html">WhoAmI</a> | <a href="LiveBookmark.html">LiveBookmark</a> | <a href="http://www.fayland.org/">HomePage</a>
<p><&lt;Previous: <a href="Template_random_quotes.html">Template Toolkit && random</a>&nbsp;&nbsp;>>Next: <a href="LiveBookmark.html">Live Bookmark</a></p>
<h1>Javascript Code Syntax Highlighter / Perl</h1>
<div class='content'>
<p>Category: <a href='Javascript.html'>Javascript</a> &nbsp; Keywords: <b>SyntaxHighlighter</b></p>最初相识 dp.SyntaxHighlighter 在 <a href="http://blog.chunzi.org">chunzi</a> 兄的 blog 上（<a href='http://blog.chunzi.org/archives/2005/10/dpsyntaxhighlig.html'>dp.SyntaxHighlighter</a>）。<br />觉得挺棒的。最重要是不占用服务器资源。（以前倒是写过一篇 <a href='Highlight.html'>用 Syntax::Highlight::Perl 将Perl代码着色</a>）<br />去 <a href="http://www.dreamprojections.com/syntaxhighlighter/">http://www.dreamprojections.com/syntaxhighlighter/</a> 下载过来看了看源码，就依样划葫芦写了个 shBrushPerl.js<br />不过麻烦的是 Javascript 的 RegExp 似乎挺难相处的。\ 这样似乎无法转义。我也不知具体该如何操作。<p />一个简单的演示位于 <a href="http://www.fayland.org/journal/SyntaxHighlight/perl.html">http://www.fayland.org/journal/SyntaxHighlight/perl.html</a><br />若想下载的话直接将它另存为或者去 <a href="http://www.fayland.org/journal/SyntaxHighlight/">http://www.fayland.org/journal/SyntaxHighlight/</a> 拖走。<p />若有所改进，请发 email 与我。谢谢。</div>
<p><&lt;Previous: <a href="Template_random_quotes.html">Template Toolkit && random</a>&nbsp;&nbsp;>>Next: <a href="LiveBookmark.html">Live Bookmark</a></p>
<p><strong>Options:</strong> <a href='http://del.icio.us/post?title=Javascript%20Code%20Syntax%20Highlighter%20/%20Perl&url=http://www.fayland.org/journal/Javascript_highlight_Perl.html'>+Del.icio.us</a></p>
<strong>Related items</strong>
<ul><li><a href='Template_random_quotes.html'>Template Toolkit && random</a> < <span class='digit'>2005-11-07 16:16:46</span> ></li><li><a href='RandomLink.html'>随机链接</a> < <span class='digit'>2005-06-04 01:00:57</span> ></li></ul>
Created on <span class="digit">2005-11-08 01:37:28</span>, Last modified on <span class="digit">2005-11-25 11:46:47</span><br />
Copyright 2004-2005 All Rights Reserved. Powered by <a href="Eplanet.html">Eplanet</a> && <a href='http://catalyst.perl.org'>Catalyst</a> 5.62.
</body>
</html>